/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
/**
 * 说明：
 * Entity Name 商品
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TComment")
public class TComment implements Serializable{

	private static final long serialVersionUID = 1L;

	private String CommentID;//评论编号
	
	private String Content;//评论内容
	
	private String MainCommentID;//主评论编号
	
	private int TargetType;//评论对象类型
	
	private String TargetID;//评论对象编号
	
	private Date HappenTime;//评论时间
	
	private int ReturnPoint;//评论返还积分
	
	private byte Grade;//打分
	
	private byte IsUseful;//评论是否有用
	
	private int Support;//评论支持数
	
	private String RelOrderID;//评论相关ID
	
	private byte CreateType;//创建评论类型
	
	private String GroupID;//评论相关群组编号
	
	private byte Status;//状态
	
	private TUser tUser;

	@OneToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="UserID")
	public TUser getTUser() {
		return tUser;
	}

	public void setTUser(TUser user) {
		tUser = user;
	}

	@Id
	@Column(name = "CommentID", length=15)
	public String getCommentID() {
		return CommentID;
	}

	public void setCommentID(String commentID) {
		CommentID = commentID;
	}
	@Column(name = "Content")
	public String getContent() {
		return Content;
	}

	public void setContent(String content) {
		Content = content;
	}
	@Column(name = "MainCommentID")
	public String getMainCommentID() {
		return MainCommentID;
	}

	public void setMainCommentID(String mainCommentID) {
		MainCommentID = mainCommentID;
	}
	@Column(name = "TargetType")
	public int getTargetType() {
		return TargetType;
	}

	public void setTargetType(int targetType) {
		TargetType = targetType;
	}
	@Column(name = "TargetID")
	public String getTargetID() {
		return TargetID;
	}

	public void setTargetID(String targetID) {
		TargetID = targetID;
	}
	@Column(name = "HappenTime")
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}
	@Column(name = "ReturnPoint")
	public int getReturnPoint() {
		return ReturnPoint;
	}

	public void setReturnPoint(int returnPoint) {
		ReturnPoint = returnPoint;
	}
	@Column(name = "Grade")
	public byte getGrade() {
		return Grade;
	}

	public void setGrade(byte grade) {
		Grade = grade;
	}
	@Column(name = "IsUseful")
	public byte getIsUseful() {
		return IsUseful;
	}

	public void setIsUseful(byte isUseful) {
		IsUseful = isUseful;
	}
	@Column(name = "Support")
	public int getSupport() {
		return Support;
	}

	public void setSupport(int support) {
		Support = support;
	}
	@Column(name = "RelOrderID")
	public String getRelOrderID() {
		return RelOrderID;
	}

	public void setRelOrderID(String relOrderID) {
		RelOrderID = relOrderID;
	}
	@Column(name = "CreateType")
	public byte getCreateType() {
		return CreateType;
	}

	public void setCreateType(byte createType) {
		CreateType = createType;
	}
	@Column(name = "GroupID")
	public String getGroupID() {
		return GroupID;
	}

	public void setGroupID(String groupID) {
		GroupID = groupID;
	}
	@Column(name = "Status")
	public byte getStatus() {
		return Status;
	}

	public void setStatus(byte status) {
		Status = status;
	}
	
	
	
}
